import React from "react";
import { HashRouter, Route, Redirect } from "react-router-dom";
import { AsyncPage } from "@/utils/util";
import "./style.scss";

const MonitorApp = AsyncPage(() => import("./app"));
const MonitorPeople = AsyncPage(() => import("./people"));
const MonitorSubject = AsyncPage(() => import("./subject"));

console.log(11, MonitorPeople);
function Monitorwarning() {
    return (
        <HashRouter>
            <Route path="/main/monitor" exact render={() => <Redirect to="/main/monitor/app" />} />
            <Route path="/main/monitor/app" component={MonitorApp} />
            <Route path="/main/monitor/people" component={MonitorPeople} />
            <Route path="/main/monitor/subject" component={MonitorSubject} />
        </HashRouter>
    );
}

export default Monitorwarning;
